package com.personal.service;

import com.personal.domain.Partner;
import com.personal.util.partDisplay.PartnerPart;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @projectName: smartCommunity_springboot
 * @package: com.personal.service
 * @className: PartnerService
 * @author: bong~
 * @description: TODO
 * @date: 2023/8/10 11:18
 * @version: 1.0
 */

@Transactional
public interface PartnerService {

    List<Partner> selectAll();

    List<PartnerPart> selectPartAll();

    List<PartnerPart> selectPartByKey(String name,String code);

    boolean add(Partner partner);

    Partner getUpdateData(int id);
    boolean update(Partner partner);

    boolean delete(List<Integer> ids);
}
